package com.claimSettlement.controller;

import com.claimSettlement.pojo.SysJurisdiction;
import com.claimSettlement.service.MenuOpenFeginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/*
 *菜单控制层
 *宁杰
 */
@RestController
@RequestMapping("/user")
public class MenuMicroservicController {
    @Autowired
    MenuOpenFeginService menuOpenFeginService;
    @RequestMapping("/getMenuAll")
    public List<SysJurisdiction> getMenuAll(Integer uid){
        return menuOpenFeginService.getMenuAll(uid);
    }
    @RequestMapping("/getMenuButton")
    public List<String> getMenuButton(Integer uid,Integer jpid){
        return menuOpenFeginService.getMenuButton(uid,jpid);
    }
}
